extends Node2D
@onready var label: Label = $Label

var os_name = OS.get_name()

func _ready() -> void:
	if 'Android' == os_name:
		print("这是Android设备")
	elif 'iOS' == os_name:
		print("这是iOS设备")
	elif 'Windows' == os_name:
		print("这是桌面设备")
	elif 'HTML5' == os_name:
		print("这是在浏览器中运行")
	var screen_size = DisplayServer.screen_get_size()
	print("屏幕宽度: ", screen_size.x)
	print("屏幕高度: ", screen_size.y)
	label.text = os_name +'  '+str(screen_size.x)+'  '+str(screen_size.y)


#Android
#2400
#1080

func _process(delta: float) -> void:
	pass
